package com.imooc.service;

import com.imooc.pojo.bo.SubmitOrderBO;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author 逸尘风清
 * @date 2021/5/10
 * @time 17:01
 * 描述：
 */
public interface OrdersService {

    String createOrder(SubmitOrderBO submitOrderBO);

    @Transactional(propagation = Propagation.REQUIRED)
    int closeOrder();
}
